xen/tools: tracing: improve tracing of context switches.
authorDario Faggioli <dario.faggioli@citrix.com>
Thu, 15 Sep 2016 11:35:04 +0000 (12:35 +0100)
committerGeorge Dunlap <george.dunlap@citrix.com>
Wed, 21 Sep 2016 12:59:18 +0000 (13:59 +0100)
commitacdedf455c7dc0df2fb5c8ab2dc373db8b56c9ce
tree878bd9a1aeda4c9b2624fd7d0e6baef6e57a4ad0
parenta9c9600bb5b2f79058ce24f0ef51f22c78e89ba1
xen/tools: tracing: improve tracing of context switches.

Right now, two out of the three events related to
context switch (that is TRC_SCHED_SWITCH_INFPREV and
TRC_SCHED_SWITCH_INFNEXT) only report the domain id,
and not the vcpu id.

That's omitting a useful piece of information, and
even if we be figured that out by looking at other
records, that's unnecessarily complicated (especially
if working on a trace from a sctipt).

This changes both the tracing code in Xen and the parsing
code in tools at once, to avoid introducing transitional
regressions.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
tools/xentrace/formats
tools/xentrace/xenalyze.c
xen/common/schedule.c